export const testSnippets = {
    '返回内容是否等于某个字符串': 'tests["body is correct"] = responseBody === "body...";',
    '返回内容是否包含某个字符串': 'tests["body contains string"] = responseBody.indexOf("some string...") > -1;',
    '返回JSON中某个属性是否等于100': 'tests["value is correct"] = responseObj.value === 100;',
    '返回header中content-type是否为JSON': 'tests["contains json header"] = responseHeaders["content-type"] === "application/json; charset=utf-8";',
    '返回时间是否超过200ms': 'tests["response time is less than 200ms"] = responseTime < 200;',
    '返回状态码检查': 'tests["status code is 200"] = responseCode.code === 200;',
    '返回name是否为OK': 'tests["status code name is ok"] = responseCode.name === "OK";',
};